package com.coderman.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author zhangyukang
 * @version 1.0
 * @since 2020/12/16 21:40
 **/
@Data
@ApiModel(value = "用户登入表单")
public class UserLoginDTO implements Serializable {

	private static final long serialVersionUID = -6132087732313796918L;

	@NotBlank(message = "用户名不能为空")
	@ApiModelProperty(value = "用户名")
	private String username;

	@NotBlank(message = "密码不能为空")
	@ApiModelProperty(value = "密码")
	private String password;

}
